<?php

use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $searchModel common\models\searchs\SearchModelLog */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '用户登录日志';
?>
<div class="model-log-index">

    <?= common\components\grid\GridView2015::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
    	'title' => $this->title,
    	'panel' => [
    		'before' => Html::a('<i class="glyphicon glyphicon-remove"></i> 清空日志', ['clear'], ['class' => 'btn btn-success', 'style' => 'margin-left:20px;'])
    	],
        'columns' => [
            ['class' => 'common\components\grid\CheckboxColumn2015'],
            ['class' => 'common\components\grid\SerialColumn2015'],
            'message',
            'ip',
            'site_id',
        	//'server',
        	'user_id',
        	[
        		'attribute' => 'sys',
        		'filter' => f_p('system')
        	],
        	'log_time',
            [
            	'class' => 'common\components\grid\ActionColumn2015',
            	'template' => '{view}',
    		]
        ],
    ]); ?>

</div>
